package com.micro.frog.acct.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver;

/** Freemarker 模板解析Bean
 * @author :  ljh
 * @date : 2018/4/2
 **/
@Configuration
public class FreemarkerConfig {


//    @Bean
    public FreeMarkerViewResolver freeMarkerViewResolver(){
        FreeMarkerViewResolver viewResolver = new FreeMarkerViewResolver();
        viewResolver.setRequestContextAttribute("request");
        return viewResolver;
    }
}
